/* --------------------------- (C) COPYRIGHT 2021 Fortiortech ShenZhen -----------------------------
    File Name      : PIInit.c
    Author         : Fortiortech  Appliction Team
    Version        : V1.0
	Editor         : Leo.li
    Date           : 2021-04-11
    Description    : This file contains PI initial function used for Motor Control.
----------------------------------------------------------------------------------------------------  
                                       All Rights Reserved
------------------------------------------------------------------------------------------------- */
/* Includes -------------------------------------------------------------------------------------*/
#include <MyProject.h>

void PI_Init(void)
{
    PI1_KP = SKP;
    PI1_EK1 =0;
    PI1_EK =0;
    PI1_KI = SKI;
    PI1_UKH =0;
    PI1_UKL =0;
    PI1_UKMAX = SOUTMIN;
    PI1_UKMIN = SOUTMIN;
//    PI2_KP = DQKP;
//    PI2_KI = DQKI;
//    PI2_UKMAX = DOUTMAX;
//    PI2_UKMIN = DOUTMIN;
//    PI2_UKH = 0;
//    PI3_KP = SKP;
//    PI3_KI = SKI;
//    PI3_KD = 0;
//    PI3_EK1 = 0;
//    PI3_EK2 = 0;    
//    PI3_UKMAX = SOUTMAX;
//    PI3_UKMIN = SOUTMIN;
//    PI3_UKH = 0;

}